package com.ssk.sh.web.controller;

import com.ssk.sh.model.Users;
import com.ssk.sh.service.IUsersService;
import io.swagger.v3.oas.annotations.tags.Tag;
import java.util.List;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ssk
 * @since 2025-07-03
 */
@RestController
@RequestMapping("/users")
@Tag(name = "UsersController", description = "用户信息")
@AllArgsConstructor
public class UsersController {
    private final IUsersService usersService;

    @GetMapping("/list")
    public List<Users> list() {
        return usersService.list();
    }
}
